export const formatTime = (t: number): string => {
  let seconds: number | string = t % 60
  let minutes: number | string = Math.floor((t / 60) % 60)

  if (seconds < 10) {
    seconds = '0' + seconds
  }
  if (minutes < 10) {
    minutes = '0' + minutes
  }

  const res = minutes + ':' + seconds

  return res
}
